package com.TanNgee.registry;

import com.TanNgee.extension.SPI;

import java.net.InetSocketAddress;

/**
 * 服务注册接口
 *
 * @author 陈毅
 * @create 2022/3/20 23:43
 */
@SPI
public interface ServiceRegistry {
    /**
     * 服务注册
     *
     * @param rpcServiceName    rpc service name
     * @param inetSocketAddress service address
     */
    void registerService(String rpcServiceName, InetSocketAddress inetSocketAddress);
}
